<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2021/8/24
  Time: 16:20
  To change this template use File | Settings | File Templates.
--%>
<%@page contentType="text/html; charset=UTF-8" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="climb" uri="/WEB-INF/tlds/climb.tld" %>
<form id="updateForm" action="${pageContext.request.contextPath}/users/edit" method="post">
    <input type="hidden" name="id" value="${user.id }">
    <table>
        <tr>
            <td>姓名</td>
            <td><input type="text" name="name" value="${user.name }"></td>
        </tr>
        <tr>
            <td>体重</td>
            <td><input type="text" name="weight" value="${user.weight }"></td>
        </tr>
        <tr>
            <td>电话号码</td>
            <td><input type="text" name="phoneNumber" value="${user.phoneNumber}"></td>
        </tr>
        <tr>
            <td>邮箱</td>
            <td><input type="text" name="email" value="${user.email}"></td>
        </tr>
        <tr>
            <td>生日</td>
            <td><input type="text" name="birthday" value="${climb:formatLocalDate(user.birthday, "yyyy-MM-dd")}"></td>
        </tr>
        <tr>
            <td>薪水</td>
            <td><input type="text" name="salary" value="${user.salary }"></td>
        </tr>
        <tr>
            <td>图片</td>
            <td>
                <img src="${pageContext.request.contextPath }/users/download?id=${user.id }" width="200" height="200"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="修改">
            </td>
        </tr>
    </table>
</form>

